package com.cloud.feign;

import com.cloud.config.Service2FeignConfig;
import com.cloud.fallback.FeignFallback;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import feign.Logger;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author: TongRui乀
 * @Date: 2019/10/25 10:16
 * @description：
 */
@FeignClient(name = "cloud-service-02-Ribbon", configuration = Service2FeignConfig.class, fallbackFactory = FeignFallback.class)
public interface Service2Feign {


    @GetMapping("test/service")
    String hello();


    @GetMapping("test/timeout")
    String timeout();

}

